package com.tianbao54.strategy;

import java.io.File;
import java.util.Collections;
import java.util.List;

public class CompressContext {

    private CompressStrategy compressStrategy;

    public CompressContext(CompressStrategy compressStrategy) {
        this.compressStrategy = compressStrategy;
    }

    public void createArchive (List<File> files) {
        compressStrategy.compress(files);
    }

    public static void main(String[] args) {
        CompressContext compressContext = new CompressContext(new RarCompressStrategy());
        compressContext.createArchive(Collections.emptyList());
    }
}
